<?php

$api_service_path = __DIR__ . "/../../../api/";
ob_start();
require_once($api_service_path . "public/index.php");
ob_end_clean();
DB::connection()->disableQueryLog(); 


$mdb=MaintenanceShops::where("status",1)->get();
foreach ($mdb as $_mdb) {//计算每个点的营业额
	$data = ReportTask::operating_rule($_mdb->id,date("Y-m-d",time()-86400));
	// $data = ReportTask::operating_rule($_mdb->id,date("Y-m-d",time()));
}
// ReportTask::operating_rule(7,'2017-01-03');
?>